<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page session="false" %>
<html>
<head>
	<link href="<c:url value="/style/ui-lightness/jquery-ui-1.8.9.custom.css"/>" rel="stylesheet" type="text/css"/>
	<script type="text/javascript" src="<c:url value="/scripts/jquery-1.5.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/scripts/jquery.validate.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/scripts/registration.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/scripts/jquery-ui-1.8.9.custom.min.js"/>"></script>
	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<style>
	.ui-autocomplete {
		max-height: 200px;
		overflow-y: auto;
		/* prevent horizontal scrollbar */
		overflow-x: hidden;
		/* add padding to account for vertical scrollbar */
		padding-right: 20px;
		font-size: 70%;
		width: auto;
	}
	* html .ui-autocomplete {
		height: 200px;
	}	
	</style>
	<title>Home</title>
</head>
<body>
<div class="ui-widget">
<form:form action="submit" id="regform">
<table>
	<tr>
		<td><spring:message code="label.login"/> </td>
		<td><em>*</em><input type="text" id="login" class="required" minlength="2"></td>
		<td><div id="validlogin"/></td>
	</tr>
	<tr>
		<td><spring:message code="label.password"/></td>
		<td><input type="password" name="pass"></td>
		<td>
			<input type="hidden" id="errorpassword" value="<spring:message code="label.reg.paserror"/>"/>
			<input type="hidden" id="successpassword" value="<spring:message code="label.reg.passuccess"/>"/>
			<div id="validpas"/>
		</td>
	</tr>
	<tr>
		<td><spring:message code="label.re-password"/></td>
		<td><input type="password" name="repass"></td>
		<td>
			<input type="hidden" id="errorre-password" value="<spring:message code="label.reg.re-error"/>"/>
			<input type="hidden" id="successre-password" value="<spring:message code="label.reg.re-success"/>"/>
			<div id="validre-pas"/>
		</td>
	</tr>
	<tr>
		<td><spring:message code="label.name"/></td>
		<td><input type="text" name="name"></td>
		<td></td>
	</tr>
		<td><spring:message code="label.city"/></td>
		<td><input id="city" /></td>
		<td></td>
	</tr>
	<tr>
		<td><spring:message code="label.region"/></td>
		<td><input id="region" /></td>
		<td></td>
	</tr>
	<tr>
		<td><spring:message code="label.country"/></td>
		<td><input id="country" /></td>
		<td></td>
	</tr>
</table>
<input type="submit" value="<spring:message code="label.reg.submit"/>">
</form:form>
</div>
</body>
</html>
